﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
namespace Common
{
    /// <summary>
    /// 方便获取request的值
    /// </summary>
    public static class RequestHelper
    {
        public static int? GetInt(Page p, string name)
        {
            string temp = p.Request[name];
            int? tempInt=null;
            try
            {
                tempInt = TypeHelper.GetInt(temp);
            }
            catch (Exception)
            {
                
              
            }
            
            return tempInt;
        }

        
        public static string GetString(Page p, string name)
        {
            string temp = p.Request[name];
            temp = TypeHelper.GetString(temp);
            return temp;
        }

        
    }
}
